/**
 * 使用 scss 有问题
 *
******************************************************************************/
//
// 颜色
@color_main: #05e8fe;
@color_title: #fe9205;
@color_waring: #fefe05;
@color_label: #fefefe;
@color_time: rgb(5, 241, 103);
// 字体
@font-family_title: "DIN";
@font-family_time: "lcd-pixel";
@font-family_label: "YouSheBiaoTiHei";
@font-family_waring: "YouSheBiaoTiHei";

.common_001() {
    position: absolute;
    top: 0px;
    z-index: 9;
    /* 盒子模型 */
    box-sizing: border-box;
    width: 136px;
    height: 42px;
    /* 字体 */
    font-family: @font-family_label;
    font-size: 18px;
    font-weight: 400;
    line-height: 42px;
    text-align: center;
    color: @color_main;
    /* 光标 - 小手 */
    cursor: pointer;
    /* 背景 */
    background-size: 100% 100%;
}

.dataScreen-container {
    width: 100%;
    height: 100%;
    background: url("./images/bg.png");
    background-repeat: no-repeat;
    /* 设置背景图像是否固定或者随着页面的其余部分滚动 */
    background-attachment: fixed;
    background-position: center;
    background-size: 100% 100%;
    /* 保持图像的纵横比并将图像缩放成将完全覆盖背景定位区域的最小大小 */
    background-size: cover;

    .dataScreen {
        /* 生成绝对定位的元素，相对于浏览器窗口进行定位 */
        position: fixed;
        top: 50%;
        left: 50%;
        /* 弹性布局 */
        display: flex;
        /* 弹性布局方向 - column 沿垂直主轴由上向下排列 */
        flex-direction: column;
        overflow: hidden;
        transition: transform 0.3s;
        transform-origin: left top;
        z-index: 999;

        /* Header */
        .dataScreen-header {
            display: flex;
            width: 100%;
            height: 38px;

            .header-lf {
                position: relative;
                width: 567px;
                height: 100%;
                background: url("./images/dataScreen-header-left-bg.png") no-repeat;
                background-size: 100% 100%;

                .header-lf-home {
                    .common_001;
                    right: 0;
                    background: url("./images/dataScreen-header-btn-bg-l.png") no-repeat;
                }
            }

            .header-ct {
                position: relative;
                /* 所有子项平分父亲，不管子项是否设置了固定宽度 */
                flex: 1;
                height: 100%;

                .header-ct-title {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 82px;
                    font-family: @font-family_title;
                    font-size: 32px;
                    line-height: 78px;
                    color: @color_title;
                    text-align: center;
                    letter-spacing: 4px;
                    background: url("./images/dataScreen-header-center-bg.png") no-repeat;
                    background-size: 100% 100%;

                    .header-ct-warning {
                        position: absolute;
                        bottom: -42px;
                        left: 50%;
                        width: 622px;
                        height: 44px;
                        font-family: @font-family_waring;
                        font-size: 14px;
                        line-height: 44px;
                        color: @color_waring;
                        text-align: center;
                        letter-spacing: 1px;
                        background: url("./images/dataScreen-header-warn-bg.png") no-repeat;
                        background-size: 100% 100%;
                        transform: translateX(-50%);
                    }
                }
            }

            .header-rg {
                position: relative;
                width: 567px;
                height: 100%;
                background: url("./images/dataScreen-header-right-bg.png") no-repeat;
                background-size: 100% 100%;

                .header-rg-report {
                    .common_001;
                    left: 0;
                    background: url("./images/dataScreen-header-btn-bg-r.png") no-repeat;
                }

                .header-rg-time {
                    position: absolute;
                    top: 0;
                    right: 0;
                    width: 236px;
                    font-family: @font-family_time;
                    font-size: 16px;
                    font-weight: 800;
                    line-height: 41px;
                    color: @color_time;
                    white-space: nowrap;
                }
            }
        }

        /* Main */
        .dataScreen-main {
            box-sizing: border-box;
            display: flex;
            flex: 1;
            width: 100%;
            padding: 12px 42px 20px;

            .main-lf {
                display: flex;
                flex-direction: column;
                justify-content: space-between; // 两端对齐，项目之间的间隔都相等
                width: 394px;
                height: 100%;
                margin-right: 40px;

                .lf-tcb-common() {
                    position: relative;
                    box-sizing: border-box;
                    width: 100%;
                    padding-top: 54px;
                }

                .main-lf-top {
                    .lf-tcb-common();
                    height: 37%;
                    background: url("./images/dataScreen-main-lt.png") no-repeat;
                    background-size: 100% 100%;
                }

                .main-lf-center {
                    .lf-tcb-common();
                    height: 30%;
                    background: url("./images/dataScreen-main-lc.png") no-repeat;
                    background-size: 100% 100%;
                }

                .main-lf-bottom {
                    .lf-tcb-common();
                    height: 27%;
                    margin-bottom: 0;
                    background: url("./images/dataScreen-main-lb.png") no-repeat;
                    background-size: 100% 100%;
                }
            }

            .main-ct {
                display: flex;
                flex: 1;
                flex-direction: column;
                justify-content: space-between;
                height: 100%;
                margin-right: 40px;

                .main-ct-map {
                    position: relative;
                    box-sizing: border-box;
                    flex: 1;
                    width: 100%;
                    margin-top: 78px;

                    .main-ct-map-title {
                        position: absolute;
                        top: 10px;
                        left: 0;
                        z-index: 99;
                        box-sizing: border-box;
                        display: flex;
                        align-items: center;
                        width: 270px;
                        height: 25px;
                        padding-left: 30px;
                        font-family: @font-family_label;
                        font-size: 18px;
                        color: @color_label;
                        letter-spacing: 5px;
                        background: url("./images/map-title-bg.png") no-repeat;
                        background-size: 100% 100%;
                    }

                    .dataScreen-alarm {
                        position: absolute;
                        top: 0;
                        left: 0;
                        z-index: 99;
                        box-sizing: border-box;
                        width: 100%;
                        height: 76px;
                        padding: 2px 30px;
                        overflow: hidden;
                        background: url("./images/dataScreen-warn-bg.png") no-repeat;
                        background-size: 100% 100%;

                        .map-item {
                            display: flex;
                            align-items: center;
                            height: 37px;
                            cursor: pointer;

                            img {
                                width: 15px;
                                height: 15px;
                                margin-top: 3px;
                                margin-right: 6px;
                            }

                            span {
                                font-size: 18px;
                                color: rgb(255 183 0 / 74.7%);
                            }
                        }
                    }
                }

                .main-ct-bottom {
                    position: relative;
                    box-sizing: border-box;
                    width: 100%;
                    height: 252px;
                    padding-top: 54px;
                    background: url("./images/dataScreen-main-cb.png") no-repeat;
                    background-size: 100% 100%;
                }
            }

            .main-rg {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                width: 394px;
                height: 100%;

                .rg-tcb-common() {
                    position: relative;
                    box-sizing: border-box;
                    width: 100%;
                    padding-top: 54px;
                }

                .main-rg-top {
                    .rg-tcb-common();
                    height: 37%;
                    background: url("./images/dataScreen-main-rt.png") no-repeat;
                    background-size: 100% 100%;
                }

                .main-rg-center {
                    .rg-tcb-common();
                    height: 30%;
                    background: url("./images/dataScreen-main-rc.png") no-repeat;
                    background-size: 100% 100%;
                }

                .main-rg-bottom {
                    .rg-tcb-common();
                    height: 27%;
                    margin-bottom: 0;
                    background: url("./images/dataScreen-main-rb.png") no-repeat;
                    background-size: 100% 100%;
                }
            }

            .main-label {
                position: absolute;
                top: 1px;
                left: 0;
                display: flex;
                flex-direction: column;

                span {
                    margin-bottom: 12px;
                    font-family: @font-family_label;
                    font-size: 18px;
                    line-height: 16px;
                    color: @color_label;
                    letter-spacing: 1px;
                }

                img {
                    width: 68px;
                    height: 7px;
                }
            }

            .main-chart {
                width: 100%;
                height: 100%;
            }
        }
    }
}
